﻿<%@ Control Language="C#" ClassName="Payments" %>
<script runat="server">
</script>
<ajaxtk:CollapsiblePanelExtender ID="cpPmts" runat="server"
	TargetControlID="pnlPmts"
	CollapseControlID="pnlPmtsHeader" ExpandControlID="pnlPmtsHeader"
	TextLabelID="lblPmtsLabel"
	ImageControlID="imgPmtsPanel"
	CollapsedImage="~/images/Buttons/expand.jpg" ExpandedImage="~/images/Buttons/collapse.jpg"
	Collapsed="true"	CollapsedText="" ExpandedText=""
	SuppressPostBack="true"
></ajaxtk:CollapsiblePanelExtender>
<asp:Panel ID="pnlPmtsHeader" CssClass="PanelHeaderBlue" style="width:100%" runat="server">
<table cellPadding="0" cellSpacing="0"><tr><th Width="1px"><asp:Image ID="imgPmtsPanel" runat="server" />
<td nowrap><label ID="lblPmtsLabel" runat="server">Payments</label></td></tr></table>
</asp:Panel> 
<asp:Panel ID="pnlPmts" runat="server" CssClass="PannelContent">

<asp:UpdatePanel ID="upPmts" UpdateMode="Always" runat="server"><ContentTemplate>
<UI:GridViewMB ID="grvPayments" DataSourceID="dsPmts" runat="server" CaptionAlign="Left" AutoGenerateColumns="false"
		ShowHeader="true" AllowSorting="true" AllowEdit="false" AllowPaging="true" PageSize="15" ShowDelete="false" RowStyle-HorizontalAlign="Right"
>
<Columns>
<asp:BoundField DataField="Receipt #" HeaderText="Receipt #" SortExpression="Receipt #"></asp:BoundField>
<asp:BoundField DataField="Payment Amount" HeaderText="Amount" SortExpression="Payment Amount"></asp:BoundField>
<asp:BoundField DataField="Payment Date" DataFormatString="{0:MM/dd/yyyy}" HtmlEncode="false" HeaderText="Date" SortExpression="Payment Date"></asp:BoundField>
<asp:BoundField DataField="Payment Due Date" DataFormatString="{0:MM/dd/yyyy}" HtmlEncode="false" HeaderText="Due Date" SortExpression="Payment Due Date"></asp:BoundField>
<asp:TemplateField HeaderText="DPD" SortExpression="DPD"><ItemTemplate><%#Lib.MakeInt(Eval("DPD"))>0?Eval("DPD"):""%></ItemTemplate></asp:TemplateField>
<asp:BoundField DataField="# of Payments" DataFormatString="{0:#}" HtmlEncode="false" HeaderText="# of Pmts" SortExpression="# of Payments"></asp:BoundField>
<asp:BoundField DataField="Past Due" HeaderText="Past Due" SortExpression="Past Due"></asp:BoundField>
<asp:BoundField DataField="Balance" HeaderText="Balance" SortExpression="Balance"></asp:BoundField>
<asp:BoundField DataField="Late Charge" HeaderText="Late Charge" SortExpression="Late Charge"></asp:BoundField>
<asp:BoundField DataField="System Date" DataFormatString="{0:MM/dd/yyyy}" HtmlEncode="false" HeaderText="System Date" SortExpression="System Date"></asp:BoundField>
<asp:BoundField DataField="Payment Type" DataFormatString="{0:#}" HtmlEncode="false" HeaderText="Type" SortExpression="Payment Type"></asp:BoundField>
<asp:BoundField DataField="Payment Form" DataFormatString="{0:#}" HtmlEncode="false" HeaderText="Form" SortExpression="Payment Form"></asp:BoundField>
<asp:BoundField DataField="How Paid" DataFormatString="{0:#}" HtmlEncode="false" HeaderText="How Paid" SortExpression="How Paid"></asp:BoundField>
<asp:BoundField DataField="Id #" HeaderText="UsixID" SortExpression="Id #"></asp:BoundField>
<asp:BoundField DataField="Int Prt_" HeaderText="Int Prt_" SortExpression="Int Prt_"></asp:BoundField>
<asp:BoundField DataField="L_C Prt_" HeaderText="L_C Prt_" SortExpression="L_C Prt_"></asp:BoundField>
<asp:BoundField DataField="NSF Prt_" HeaderText="NSF Prt_" SortExpression="NSF Prt_"></asp:BoundField>
<asp:BoundField DataField="DLR Prt_" HeaderText="DLR Prt_" SortExpression="DLR Prt_"></asp:BoundField>
<asp:BoundField DataField="Int Accrue" HeaderText="Int Accrue" SortExpression="Int Accrue"></asp:BoundField>
<asp:BoundField DataField="Fld# 013" HeaderText="Fld# 013" SortExpression="Fld# 013"></asp:BoundField>
<asp:BoundField DataField="Fld# 170" HeaderText="Fld# 170" SortExpression="Fld# 170"></asp:BoundField>
<asp:BoundField DataField="Fld# 186" HeaderText="Fld# 186" SortExpression="Fld# 186"></asp:BoundField>
<asp:BoundField DataField="Fld# 187" HeaderText="Fld# 187" SortExpression="Fld# 187"></asp:BoundField>
<asp:BoundField DataField="" DataFormatString="{0:d}" HtmlEncode="false" HeaderText="L_C Date _Fld# 183)" SortExpression="L_C Date _Fld# 183)"></asp:BoundField>
<asp:BoundField DataField="L_UL" HeaderText="L_UL" SortExpression="L_UL"></asp:BoundField>
</Columns>
</UI:GridViewMB>
</ContentTemplate></asp:UpdatePanel>
</asp:Panel>
<DS:USIXPaymentsDataSource ID="dsPmts" runat="server">
<SelectParameters>
<asp:ControlParameter ControlID="dsPmts" PropertyName="Page.UsixID" Name="UsixID" Type="String" />
<asp:ControlParameter ControlID="dsPmts" PropertyName="Page.CompanyID" Name="CompanyID" Type="Int32" />
</SelectParameters>
</DS:USIXPaymentsDataSource>
